﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    [Serializable]
    public class SecuritySetting
    {
        private int _rID;
        private int _securityID;
        private String _roleKey;
        private String _securityKey;
        private int _securityValue;
        private String _schoolMark;

        public int RID
        {
            get { return this._rID; }
            set { this._rID = value; }
        }

        public int SecurityID
        {
            get { return this._securityID; }
            set { this._securityID = value; }
        }

        public string RoleKey
        {
            get { return this._roleKey; }
            set { this._roleKey = value; }
        }

        public string SecurityKey
        {
            get { return this._securityKey; }
            set { this._securityKey = value; }
        }

        public int SecurityValue
        {
            get { return this._securityValue; }
            set { this._securityValue = value; }
        }

        public string SchoolMark
        {
            get { return this._schoolMark; }
            set { this._schoolMark = value; }
        }

        public enum SecurityValues
        {
            /// <summary>
            /// 无权限
            /// </summary>
            NO_Security = 0,  
            /// <summary>
            /// 查看权限
            /// </summary>
            View_Security = 1,
            /// <summary>
            /// 操作权限
            /// </summary>
            Manage_Security = 2,

            /// <summary>
            /// 查看自己
            /// </summary>
            Show_Me_Security = 3,
            /// <summary>
            /// 查看本班
            /// </summary>
            Show_MyClass_Security = 4,
            /// <summary>
            /// 查看本备课组
            /// </summary>
            Show_MyGradeCasue_Security = 5,
            /// <summary>
            /// 教研组
            /// </summary>
            Show_MyCasue_Security = 6,
            /// <summary>
            /// 年级组
            /// </summary>
            Show_MyGrade_Security = 7,
            /// <summary>
            /// 全校
            /// </summary>
            Show_MySchool_Security = 8,
        }
    }

    [Serializable]
    public class VSecuritySetting
    {
        private int _RoleID;
        private int _securityID;
        private String _roleKey;
        private String _securityKey;
        private int _securityValue;
        private String _schoolMark;

        public int RoleID
        {
            get { return this._RoleID; }
            set { this._RoleID = value; }
        }

        public int SecurityID
        {
            get { return this._securityID; }
            set { this._securityID = value; }
        }

        public string RoleKey
        {
            get { return this._roleKey; }
            set { this._roleKey = value; }
        }

        public string SecurityKey
        {
            get { return this._securityKey; }
            set { this._securityKey = value; }
        }

        public int SecurityValue
        {
            get { return this._securityValue; }
            set { this._securityValue = value; }
        }

        public string SchoolMark
        {
            get { return this._schoolMark; }
            set { this._schoolMark = value; }
        } 
    }
}
